<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
</head>

<body>
  <div id="app">
    <ul @click="() => list.reverse()">
      <li v-for="(item, index) in list" :key="index">{{item}}</li>
    </ul>

    <!-- xxxxxx -->
  </div>

  
  <script>
    const { createApp, ref } = Vue

    createApp({
      setup() {
        const list = ref([1, 2, 3])

        return {
          list
        }
      }
    }).mount('#app')
  </script>

</body>

</html>